
//gcc ../vcd-common.c test_exe_command.c `pkg-config --cflags --libs gtk+-3.0 openssl`
#include <stdio.h>
#include "../vcd-common.h"
int main(int argc, char* argv[])
{
	const char* cmd = "pactl list sinks|grep %s|grep Name|cut -d ' ' -f2";
	size_t si;
	char *s = exe_command(cmd, &si);
	if(s){
	  printf("si:%u,result:%s\n",si, s);
	}
        free(s);
	s = NULL;

	cmd = "ls -l";
	s = exe_command(cmd, &si);
	if(s){
	  printf("si:%u,result:%s\n",si, s);
	}
        free(s);
	s = NULL;

return 0;
}
